#!/bin/bash
for ITER in 0 1 2 3 4 5 6 7 8 9; do
	for CODE in M09400 T84000 M00100 M43000 T63000 T01000 T8X310 T67000 M41000 others; do
		echo "****** $1/${ITER}: ${CODE} ****** InfoGain top-$2 ****** "
		java -Xmx1024m weka.filters.supervised.attribute.AttributeSelection -E "weka.attributeSelection.InfoGainAttributeEval " -S "weka.attributeSelection.Ranker -T -1.7976931348623157E308 -N $2" -i $1/${ITER}/train_${CODE}.arff -o $1/${ITER}/train_${CODE}_ig_$2.arff -r $1/${ITER}/test_${CODE}.arff -s $1/${ITER}/test_${CODE}_ig_$2.arff -c last -b
		echo "-----------------------";
		echo
	done; 
done; 
